package com.lysj.bhp.coinexchange.controller;

import com.lysj.bhp.coinexchange.base.CoinExchangeContent;
import com.lysj.bhp.coinexchange.domain.Apply;;
import com.lysj.bhp.util.web.ParamUtil;
import com.lysj.bhp.util.web.Resp;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("admin/apply")
public class ApplyController extends CoinExchangeContent {


    @RequestMapping("/list")
    public Resp list() {
        List<Apply> applies = applyRepository.findAll();
        return new Resp(applies);
    }

}
